<?php

namespace app\admin\model;

/**
 * 设备绑定-模型
 * Class DeviceBind
 */
class DeviceBind extends BaseModel
{
    // 设置数据表名
    protected $name = "device_bind";
    protected $autoWriteTimestamp = true;


    public function getActiveTimeAttr($value)
    {
        if (empty($value)) return '';
        return date('Y-m-d H:i:s', $value);
    }

    public function getExpireTimeAttr($value)
    {
        if (empty($value)) return '';
        return date('Y-m-d H:i:s', $value);
    }

}

